package com.yue.pattern.singleton;

/**
 * 恶汉模式
 * 优点：类装载时完成实例化， 避免了线程同步问题
 * 缺点：没有达到Lazy Loading效果。
 * Created by qiuyang on 06/04/2017.
 */
public class SimpleSingleton {
    private static final SimpleSingleton INSTANCE = new SimpleSingleton();

    private SimpleSingleton() {}

    public static SimpleSingleton getInstance() {
        return INSTANCE;
    }
}
